/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module SDL.h - Speed Dial List Table header file |
   @end
   
$Log: /SoftPay (1.3d)/SPK2SIM/Source/Include/sdl.h $ 
 * 
 * 2     8/25/00 12:27p Nick_t1
 * 
 * 1     8/24/00 5:33p Nick_t1
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/


#include <fields.h>
#include <util.h>


/*
 * The Card Definition Table record structure, all character array fields are
 * left alligned, space filled on the right if it is of lesser length, and
 * NULL_CH terminated.
 */
#define SDL_FILE_NAME       "SDL.DAT"
#define SDL_NAME			"SDL"

#define SDL_DESCRIPTION_SIZE  30


typedef struct TagSDL_REC
{
    char    szSDLnumber[PHONE_NUM_SIZE];       /* Phone number */
    char    szSDLdescription[SDL_DESCRIPTION_SIZE];  /* Description of number */

} SDL_REC;

extern SDL_REC srSDLRec; 

#define SIZE_SDL_REC          sizeof(SDL_REC)
#define SDL_FNAME_SZ          7    /* SDL.DAT */
#define SDL_KEY_TIMEOUT	      5    /* seconds */
#define SDL_DIAL_TIMEOUT      20   /* seconds */
#define NO_SDL_KEY_ENTERED   -1

/* Function definitions */
int  inAddSDFunctions(void);
int  inEditSpeedDialList(void);
int  inSDLKeyedDigits(void);
int  inDoSpeedDial(int);
int  inGetSDNumAndDial(void);
int  inViewSDL(void);
int  inDialModem(char *);
int SPDDIAL_CODE_CHECK(char * a,char *b,short *  c,char * d,unsigned char * e);



